// eslint-disable-next-line
import { UserLayout, BlankLayout, BasicLayout, HeaderLayout,WithOutHeaderLayout } from '@/layouts'
import { bxAnaalyse } from '@/core/icons'
/**
 * 这里不再保留原来默认的菜单asyncRouterMap
 * https://github.com/sendya/ant-design-pro-vue/blob/master/src/router/generator-routers.js
 */
export const defaultRouterMap = [

  {
    'title': 'menu.dashboard',
    'key': 'dashboard',
    'hidden': 'true',
    'component': 'RouteView',
    // 'hidden': 'true',
    'redirect': 'dashboard/analysis',
    'icon': bxAnaalyse,
    'children': [{
      'title': 'menu.dashboard.analysis',
      'path': 'analysis/:pageNum([1-9]\\d*)?',
      'key': 'analysis',
      'icon': ''
    },
    {
      'title': 'menu.dashboard.weclome',
      'key': 'weclome',
      'icon': ''
    },
    {
      'title': 'menu.dashboard.workplace',
      'path': 'workplace',
      'key': 'workplace',
      'icon': ''
    }
    ]
  }

]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/cloud',
    hidden: true,
    children: [
      {
        path: 'cloud',
        name: 'cloud',
        component: () =>
        import('@/views/cloud')
      },
      {
        path: 'abdbhcrm',
        name: 'abdbhcrm',
        component: () =>
       import('@/views/abdbhcrm')
      },
    ]
  }

]

export const sceneMenus = [
  {
    'component': 'shop_system_iframe',
    'hidden': false,
    'hiddenHeaderContent': false,
    'hideChildrenInMenu': false,
    'icon': 'shop',
    'key': 'shop_system_iframe',
    'path': undefined,
    'redirect': null,
    'sceneId': null,
    'target': '',
    'title': '智慧厅店',
    'searchValue': null,
    'createBy': null,
    'createTime': '2021-02-25 15:58:42',
    'updateBy': null,
    'updateTime': null,
    'remark': null,
    'beginTime': null,
    'endTime': null,
    'params': {},
    'menuId': 2025,
    'parentName': null,
    'parentId': 0,
    'orderNum': '0',
    'menuType': 'S',
    'visible': '0',
    'perms': '',
    'hiddenChildren': false,
    'hiddenHeader': false,
    'children': []
  },
  {
    'searchValue': null,
    'createBy': null,
    'createTime': '2021-03-04 17:55:28',
    'updateBy': null,
    'updateTime': null,
    'remark': null,
    'beginTime': null,
    'endTime': null,
    'params': {},
    'menuId': 2121,
    'title': '平安校园',
    'parentName': null,
    'parentId': 0,
    'target': '',
    'orderNum': '1',
    'menuType': 'S',
    'key': 'school_system_iframe',
    'component': 'school_system_iframe',
    'visible': '0',
    'perms': '',
    'icon': 'experiment',
    'path': null,
    'redirect': null,
    'hiddenChildren': false,
    'hiddenHeader': false,
    'sceneId': null,
    'children': []
  },
  {
    'searchValue': null,
    'createBy': null,
    'createTime': '2021-03-04 17:56:44',
    'updateBy': null,
    'updateTime': null,
    'remark': null,
    'beginTime': null,
    'endTime': null,
    'params': {},
    'menuId': 2122,
    'title': '智慧工地',
    'parentName': null,
    'parentId': 0,
    'target': '',
    'orderNum': '2',
    'menuType': 'S',
    'key': 'building_site_system_iframe',
    'component': 'building_site_system_iframe',
    'visible': '0',
    'perms': '',
    'icon': 'video-camera',
    'path': null,
    'redirect': null,
    'hiddenChildren': false,
    'hiddenHeader': false,
    'sceneId': null,
    'children': []
  },
  {
    'searchValue': null,
    'createBy': null,
    'createTime': '2021-03-04 18:47:44',
    'updateBy': null,
    'updateTime': null,
    'remark': null,
    'beginTime': null,
    'endTime': null,
    'params': {},
    'menuId': 2155,
    'title': '明厨亮灶',
    'parentName': null,
    'parentId': 0,
    'target': '',
    'orderNum': '203',
    'menuType': 'C',
    'key': 'school_shcool_kitchen',
    'component': 'school_shcool_kitchen',
    'visible': '0',
    'perms': null,
    'icon': '#',
    'path': null,
    'redirect': null,
    'hiddenChildren': false,
    'hiddenHeader': false,
    'sceneId': null,
    'children': []
  }
]
